def describe_pet(animal_type,pet_name):
    """显示宠物信息"""
    print(f"\nI have a {animal_type}.")
    print(f"My {pet_name}'s name is {pet_name.title()}")

describe_pet('hamster','harry')

describe_pet("dog","willie")

describe_pet(animal_type='hamster',pet_name='harry')

def describe_pet1(pet_name,animal_type='dog'):
    """显示宠物信息。"""
    print(f"\nI have a {animal_type}")
    print(f"My {animal_type}'s name {pet_name.title()}")

describe_pet1("wangcai")